#ifndef _TABROSCONN_H__
#define _TABROSCONN_H__

#include <QWidget>
#include "ui_selecte_veh.h"
#include "qwt_dial_needle.h"
#include "../dataInclude/singleData.h"
#include "../funInclude/rosnode.h"

class TabRosConn : public TabBase {
  Q_OBJECT

  public:
    TabRosConn();
    ~TabRosConn();
    virtual void dealData();
    
  protected Q_SLOTS:
     virtual void rosConnSolt(bool conn);
     
     void useLocalNodeSlot(bool check);
     void rememberConnSlot(bool check);
     void autoConnSlot(bool check);
     void masterFinishedSlot();
     void ipFinishedSlot();
     void connBtnSlot();
     void cancelBtnSlot();
     
     void rosConnDealSlot(bool conn);

  private:
    Ui::Selecte_design ui;//界面
  
    void init();
    void initUi();
    void slotConnect();
    
    TabRosConnData data_;
    RosNode rosNode_;
    
    virtual void focusInEvent(QFocusEvent *e);
    void showNoMasterMessage();
    

};


#endif // gui_qt_demo_MAIN_WINDOW_H
